getCurrencyParameter

fun getCurrencyParameter(parameterName: String, defaultValue: CurrencyType): CurrencyType

Lookup and return the currency referenced by this object using the given parameter key

Since

build 1800 (Moneydance 2018)


fun getCurrencyParameter(currNumKey: String?, currIDKey: String?, defaultValue: CurrencyType?): CurrencyType?

Lookup and return a currency that was referenced by this object using one of the given parameter names. Priority is given to currIDKey which should reference the UUID of the currency being referenced. If the currIDKey lookup is not successfull then a lookup is done using the currNumKey which references the integer account ID that is returned by getID() method on the referenced currency. If either currNumKey or currIDKey is null then that key is not checked for a currency reference.


fun getCurrencyParameter(currNumKey: String?, currIDKey: String?, currencyIDString: String?, defaultValue: CurrencyType?): CurrencyType?

Lookup and return a currency that was referenced by this object using one of the given parameter names. Priority is given to currIDKey which should reference the UUID of the currency being referenced. If the currIDKey lookup is not successfull then a lookup is done using the currNumKey which references the integer account ID that is returned by getID() method on the referenced currency. If no currency has been found then the parameter value associated with the currencyIDString key is checked for a currency ID string (usually the three character ISO currency ID). Any of the parameters currNumKey, currIDKey, or currencyIDString can be null in which case that parameter is not checked for a currency reference.

Since

build 1664 (Moneydance 2017.7)